<html>
<head>
<meta HTTP-EQUIV=CONTENT-TYPE CONTENT="text/html; charset=utf-8">
<title>Slide 5</title>
</head>
<body>
<center>
<a href="text0.html">First page</a> <a href="text3.html">Back</a> <a href="text5.html">Continue</a> <a href="text7.html">Last page</a> <a href="metaclasses.html">Overview</a> <a href="img4.html">Graphics</a></center><br>
<h1>O qu&ecirc; isso significa na pr&aacute;tica?</h1><p>
<ul></ul><li>Python 2.2.3 (#1, Jun  1 2003, 22:45:48) 
<li>[GCC 3.3 20030509 (Debian prerelease)] on linux2
<li>Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
<li>&gt;&gt;&gt; class C(type): pass
<li>... 
<li>&gt;&gt;&gt; type(C)
<li>&lt;type 'type'&gt;
<li>&gt;&gt;&gt; C.__class__
<li>&lt;type 'type'&gt;
<li>&gt;&gt;&gt; class D: pass
<li>... 
<li>&gt;&gt;&gt; type(D)
<li>&lt;type 'class'&gt;
<li>&gt;&gt;&gt; D.__class__ 
<li>Traceback (most recent call last):
<li>  File &quot;&lt;stdin&gt;&quot;, line 1, in ?
<li>AttributeError: class D has no attribute '__class__'
</body>
</html>